import Counter from '../components/Counter'
import {actionAdd,actionSub} from '../actionCreator/Action'
import { connect } from 'react-redux'


function mapStateToProps(state){

	return {
		count:state.CountReducer.count																		
	}
}
function mapDispatchToProps(dispatch){
	return {	
		countAdd: () => dispatch(actionAdd()),
		countSub: () => dispatch(actionSub())

	}
}


const CounterContro = connect(
	mapStateToProps,
	mapDispatchToProps
)(Counter);

export default CounterContro;

